package com.kclm.pojo;

import java.util.List;

/**
 * @Author : lvhx
 * @Date: 2025/10/30 9:49
 * @Description:
 */
public class Clazz {
    private  Long cid;
    private  String cname;
    //描述与学生的关系 一对多
    private List<Student> students;

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public Clazz() {
    }

    public Clazz(String cname, Long cid) {
        this.cname = cname;
        this.cid = cid;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "Clazz{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", students=" + students +
                '}';
    }
}
